package com.guodi.model.controller;



import com.guodi.model.entity.ApiIdtFillTaskOpinion;
import org.apache.commons.lang.StringUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import com.guodi.core.tool.api.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;


import com.guodi.common.exception.BaseRuntimeException;
import org.springframework.web.bind.annotation.RestController;
import com.guodi.core.boot.ctrl.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
import com.guodi.model.service.IIdtFillTaskOpinionService;
import com.guodi.model.entity.IdtFillTaskOpinion;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.NotBlank;
import java.util.Arrays;
import java.util.List;


/**
* 指标填报任务意见表 前端控制器
* @author lzy
* @date 2023-05-23
*/
@Slf4j
@Validated
@RestController
@RequestMapping("/IdtFillTaskOpinion")
@Api(value = "API - IdtFillTaskOpinionController", tags = "指标填报任务意见表")
public class IdtFillTaskOpinionController extends BaseController {

    @Resource
    private IIdtFillTaskOpinionService iIdtFillTaskOpinionService;

    /**
     * @描述: 保存意见
     * @入参:
     * @出参:
     * @作者: lzy
     * @日期: 2023/5/23 11:21
     **/
    @RequestMapping("/save")
    @ApiOperation(value = "保存意见")
    public R save(@ApiIgnore @RequestBody List<ApiIdtFillTaskOpinion> opinions){
        R r = iIdtFillTaskOpinionService.saveOpinions(opinions);
        return r;
    }


}
